/***
 * @file GenIdent.cpp
 *
 *  @Author: calle
 *  @date Apr 10, 2011
 *  
 *  @brief
 *  	
 */

#include "GenIdent.h"
#include <cstdlib>
#include <ctime>
#include <AbsSyn/Ident.h>
#include <string>
#include <RandomPkg/Randomizer.h>


GenIdent::GenIdent() {
	srand((unsigned)time(0));

}

GenIdent::~GenIdent() {

}




AbsSyn::IdentPtr GenIdent::genIdent() const
{

	std::string var;


	RandomPkg::Randomizer randGen;
	var = randGen.generateRandomString(MIN_LETTERS,MAX_LETTERS);


	AbsSyn::IdentPtr ret(new Ident(var));

	return ret;
}
